package com.hfi.restful.service;

import com.hfi.restful.dto.Person;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

import javax.validation.Valid;

/**
 * @author ChangLiang
 * @date 2019/9/22
 */
@Service
@Validated
public class PersonService {

    private Logger logger = LoggerFactory.getLogger(getClass());

    public void validatePerson(@Valid Person person) {
        logger.info("execute validatePerson method");
    }
}
